Cypress Semiconductor /psoc63 /TCPWM0 /CNT[16] /TR_CTRL1

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as TR_CTRL1

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (RISING_EDGE)CAPTURE_EDGE 0 (RISING_EDGE)COUNT_EDGE 0 (RISING_EDGE)RELOAD_EDGE 0 (RISING_EDGE)STOP_EDGE 0 (RISING_EDGE)START_EDGE

START_EDGE=RISING_EDGE, STOP_EDGE=RISING_EDGE, RELOAD_EDGE=RISING_EDGE, COUNT_EDGE=RISING_EDGE, CAPTURE_EDGE=RISING_EDGE

Description

Counter trigger control register 1

Fields

CAPTURE_EDGE

A capture event will copy the counter value into the CC register.

0 (RISING_EDGE): Rising edge. Any rising edge generates an event.

1 (FALLING_EDGE): Falling edge. Any falling edge generates an event.

2 (BOTH_EDGES): Rising AND falling edge. Any odd amount of edges generates an event.

3 (NO_EDGE_DET): No edge detection, use trigger as is.

COUNT_EDGE

A counter event will increase or decrease the counter by ‘1’.

0 (RISING_EDGE): Rising edge. Any rising edge generates an event.

1 (FALLING_EDGE): Falling edge. Any falling edge generates an event.

2 (BOTH_EDGES): Rising AND falling edge. Any odd amount of edges generates an event.

3 (NO_EDGE_DET): No edge detection, use trigger as is.

RELOAD_EDGE

A reload event will initialize the counter. When counting up, the counter is initialized to ‘0’. When counting down, the counter is initialized with PERIOD.

0 (RISING_EDGE): Rising edge. Any rising edge generates an event.

1 (FALLING_EDGE): Falling edge. Any falling edge generates an event.

2 (BOTH_EDGES): Rising AND falling edge. Any odd amount of edges generates an event.

3 (NO_EDGE_DET): No edge detection, use trigger as is.

STOP_EDGE

A stop event, will stop the counter; i.e. it will no longer be running. Stopping will NOT disable the counter.

0 (RISING_EDGE): Rising edge. Any rising edge generates an event.

1 (FALLING_EDGE): Falling edge. Any falling edge generates an event.

2 (BOTH_EDGES): Rising AND falling edge. Any odd amount of edges generates an event.

3 (NO_EDGE_DET): No edge detection, use trigger as is.

START_EDGE

A start event will start the counter; i.e. the counter will become running. Starting does NOT enable the counter. A start event will not initialize the counter whereas the reload event does.

0 (RISING_EDGE): Rising edge. Any rising edge generates an event.

1 (FALLING_EDGE): Falling edge. Any falling edge generates an event.

2 (BOTH_EDGES): Rising AND falling edge. Any odd amount of edges generates an event.

3 (NO_EDGE_DET): No edge detection, use trigger as is.

Links

() ()